package com.example.a22310.myapplication.Activity;


import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.a22310.myapplication.Beans.ClubCourse;
import com.example.a22310.myapplication.databinding.ActivityCourseDetailBinding;
import com.squareup.picasso.Picasso;

public class CourseDetail extends AppCompatActivity {
    private ClubCourse.ClubcourselistBean clubCourse;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityCourseDetailBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_course_detail);
        Intent intent=getIntent();
        clubCourse=(ClubCourse.ClubcourselistBean)intent.getSerializableExtra("clubcourse");
        String str =  clubCourse.getCourse_picture().substring(52,clubCourse.getCourse_picture().length());
        System.out.println("--->>>"+str);
        Picasso.with(this).load(str).into(binding.postImg);
        binding.setCourse(clubCourse);
    }
}

